﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TimKenSite.Master" AutoEventWireup="true"
    CodeBehind="Resource.aspx.cs" Inherits="TimKen.Web.Resource" %>

<%@ Register Src="UserControls/ProductResources.ascx" TagName="ProductResources"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="Common/Style/common.css" rel="stylesheet" type="text/css" />
    <link href="Common/Style/PagerStyle.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            $(".nav_li").hover(function () {//鼠标放上去时候的效果
                $(this).children("a").addClass("navon"); //鼠标放上去的加上高亮
                $(this).children("div").show(); //鼠标放上去的二级栏目出来
                $(this).siblings().children("a").removeClass("navon"); //其他的高亮取消
                $(".common_search_tk").css("position", "static");
                $(".common_search_tkicon").hide();
            }, function () {//鼠标移开时候的效果
                $(this).children("a").removeClass("navon"); //鼠标移开去掉高亮
                $(this).children("div").hide(); //鼠标移开隐藏二级栏目
                $(".common_search_tk").css("position", "relative");
                $(".common_search_tkicon").show();
                $(".nav_li:eq(2)").children("a").addClass("navon"); //回到当前栏目高亮
            });
        });
        $(document).ready(function () {
            $(".nav_li:eq(2)").children("a").addClass("navon").parent().siblings().children("a").removeClass();
            $(".left_nav ul li:eq(1)").children("a").addClass("left_navon"); //左侧导航，当前栏目高亮	
        });
        window.onload = function () { for (var ii = 0; ii < document.links.length; ii++) document.links[ii].onfocus = function () { this.blur() } }	
    </script>
    <style>
        .imgbtnsty
        {
            vertical-align: middle;
            margin-left: 10px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
    <uc1:ProductResources ID="ProductResources1" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server">
    <form runat="server">
    <div class="car common_border">
        <ul class="common_page">
            <%= GetLangString("Currentposition") %>：<a href="#"><%=GetLangString("MenuProductResource") %></a>/<a href="#"><%=GetLangString("MenuDownload")%></a>
        </ul>
        <ul class="down_search">
             <%=GetLangString("DownloadFile") %>：<input type="text" runat="server" id="txt_ssp" class="common_searchin" />  
       <a href="#">
         <% if (LanguageID == 1)
               {%>
        <asp:ImageButton CssClass="imgbtnsty" ImageUrl="../Common/Image/iconbtnbg/search_btn.gif" runat="server" ID="btn_ssdssad" onclick="btn_ssd_Click"/> 
          <%}
               else
               {%>
        <asp:ImageButton CssClass="imgbtnsty" ImageUrl="~/Common/Image/common_en/map_select.gif" runat="server" ID="ImageButton1" onclick="btn_ssd_Click"/> 
                 <%} %>
         </a> 
                <%--<asp:ImageButton CssClass="imgbtnsty" ImageUrl="../Common/Image/iconbtnbg/search_btn.gif"
                    runat="server" ID="btn_ssdss" OnClick="btn_ssd_Click" />--%>
            </a>
        </ul>
        <ul class="zlxz_box">
            <asp:Repeater ID="repResource" runat="server" OnItemCommand="repResource_ItemCommand">
                <ItemTemplate>
                    <!--content-->
                    <div class="zlxz_div">
                        <ul class="zlxz_img">
                            <img src='upload/resource/<%#Eval("Route").ToString()+".jpg" %>' width="100" height="135"
                                alt="" /></ul>
                        <ul class="zlxz_txt">
                            <h5>
                                <%#Eval("FileName") %></h5>
                            <p>
                              <%# LanguageID == 1 ? GetSubString(Eval("DescriptCN").ToString(), 100) : GetSubString(Eval("DescriptEN").ToString(), 100) %></p>
                            <h6>
                                <a href="#"> 
                                <% if (LanguageID == 1)
               {%>
                            <asp:ImageButton  ID="btDownad" ImageUrl="image/down_btn.gif"   
 CommandArgument='<%#Eval("Route") %>' CommandName="Down" Text='<%#GetLangString("Download") %>' runat="server" />
          <%}
               else
               {%>
                            <asp:ImageButton  ID="ImageButton2" ImageUrl="~/Common/Image/common_en/down_btn.gif"   
 CommandArgument='<%#Eval("Route") %>' CommandName="Down" Text='<%#GetLangString("Download") %>' runat="server" />
                 <%} %>  </a></h6>
                                <%--<asp:ImageButton ID="btDown" ImageUrl="image/down_btn.gif" CommandArgument='<%#Eval("Route") %>'
                                    CommandName="Down" Text='<%#GetLangString("Download") %>' runat="server" />--%>
                                <a href="#"></a>
                            </h6>
                        </ul>
                    </div>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
        </ul>
        <ux:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
            runat="server" AlwaysShow="True" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
            PageSize="10" PrevPageText="上一页" ShowCustomInfoSection="Left" ShowNavigationToolTip="true"
            OnPageChanged="AspNetPager1_PageChanged" CustomInfoTextAlign="Left" LayoutType="Table"
            ButtonImageNameExtension="n" CpiButtonImageNameExtension="r" CustomInfoHTML="" CustomInfoSectionWidth="">
        </ux:AspNetPager>
    </div>
    </form>
</asp:Content>
